package com.google.jia.impl.bmp;

import com.google.jia.api.AbstractImageBuilder;
import com.google.jia.api.Image;

import java.io.IOException;
import java.io.InputStream;

public class BMPImageBuilder extends AbstractImageBuilder
{
    @Override
    public Image getImage(InputStream inputStream) throws IOException
    {
        BitmapFileHeaderClass bitmapFileHeaderClass = BitmapFileHeaderClass.buildBitmapFileHeaderClass(inputStream);
        BMPImage image = new BMPImage();
        image.setBitmapFileHeaderClass(bitmapFileHeaderClass);
        return image;  //To change body of implemented methods use File | Settings | File Templates.
    }
}
